package com.imooc.xunwu.service.search;

import com.imooc.xunwu.service.ServiceMultiResult;
import com.imooc.xunwu.web.form.RentSearch;

/**
 * @Auther: hyr
 * @Date: 2018/11/5 15:27
 * @Description:
 */
public interface ISearchService {
    /**
     * 索引目标房源
     * @param houseId
     */
    void index(Long houseId);

    /**
     * 移除房源索引
     * @param houseId
     */
    void remove(Long houseId);

    /**
     * 查询房源接口
     * @param rentSearch
     * @return
     */
    ServiceMultiResult<Long> query(RentSearch rentSearch);

    ServiceMultiResult<String> suggest(String content);
}
